<?php
/**
 * @version		$Id: default.php 22338 2011-11-04 17:24:53Z github_bot $
 * @package		Joomla.Site
 * @subpackage	mod_articles_latest
 * @copyright	Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

// no direct access
defined('_JEXEC') or die;
?>

				<?php if ($module->showtitle) { ?>
                <h2 class="fs18 cf1 fwn mb10"><?php echo $module->title; ?></h2>
				<?php }; ?>
                <div class="newsBox fl w690">
				<?php foreach ($list as $item) :  ?>
                    <div class="newsItem fl w690 mb10">
                        <div class="time fl bg4 w45 fs16  ttu cf3 mr10  pv5 pl10"><?php echo date("M d", strtotime($item->created)); ?></div>
                        <div class="content fl w620">
                            <h3><a href="<?php echo $item->link; ?>" class="cf5 tdu fwn" ><?php echo $item->title; ?></a></h3>
                            <p>
															<?php						
															$words = explode(" ", strip_tags($item->introtext));
															if(count($words) > 35)
															{
																for($i=0;$i<=35;$i++)
																{
																	echo $words[$i]." ";
																}
																echo "...";
															}
															else
															{
																echo strip_tags($item->introtext);
															}
															?>
							</p>
                        </div>
                    </div>
				<?php endforeach; ?>	
				</div>

